Ext.define('DCApp.view.relic.List', {
    extend: 'DCApp.view.List',
    alias: 'widget.reliclist',
    
    viewModel: {
        type: 'reliclist'
    },
    columns: [
		{
            text     : '文物ID',
            dataIndex: 'objId',
            filter: 'number'
        },
        {
            text     : '作者(窑口)',
            dataIndex: 'objAuthor',
            filter: 'string'
        },
        {
            text     : '分类',
            dataIndex: 'classa',
            width:150,
            filter: 'string',
            filter: {
                type: 'list',
                idField:'abbr',
                labelField:'name',
                store:DCApp.Cfg.getDistinctStore('com.cl.entity.Relic','className')
            }
        },
        {
            text     : '文物编号',
            dataIndex: 'objNo',
            width:150,
            filter: 'string'
        },
        {
            text     : '文物名称',
            dataIndex: 'objName',
            width:300,
            filter: 'string'
        },
        {
            text     : '级别',
            dataIndex: 'grade',
            filter: 'string'
        },
        {
            text     : '正文字数',
            dataIndex: 'dcTxtwords'/*,
            filter: 'number' */
        },
        {
            text     : '撰稿人',
            dataIndex: 'docAuthor',
            filter: 'string'
        }
    ],
    onDestroy: function () {
        // do some cleanup
    	var me=this;
    	if(me.sel_win){
    		//this.sel_win.destroy();
    		Ext.destroy(me.sel_win);
    		me.sel_win=null;
    	}
    	me.callParent();
    }
 });
